package com.gin.kotlin.no_gay_alliance.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.gin.kotlin.no_gay_alliance.database.entity.ReportHistory

@Dao
interface ReportHistoryDao {
    @Insert
    fun add(reportHistory: ReportHistory)

    @Query("delete from ReportHistory")
    fun clear()

    @Query("select * from ReportHistory  order by id desc")
    fun list()  :List<ReportHistory>?
}